<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改驱动电机型号')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-motorModel-edit" th:object="${tbPartMotorModel}">
            <input name="motorModelId" th:field="*{motorModelId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">电机型号名称：</label>
                <div class="col-sm-8">
                    <input name="motorModelName" th:field="*{motorModelName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电机种类：</label>
                <div class="col-sm-8">
                    <select name="motorType" class="form-control m-b">
                        <option value="">所有</option>
                        <option value="马达">马达</option>
                        <option value="电机">电机</option>
                        <option value="秘制">秘制</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">电机品牌名称：</label>
                <div class="col-sm-8">
                    <input name="motorBrandName" th:field="*{motorBrandName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机冷却方式：</label>
                <div class="col-sm-8">
                    <input name="drivemotorCoolingmode" th:field="*{drivemotorCoolingmode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定电压：</label>
                <div class="col-sm-8">
                    <input name="retedVoltage" th:field="*{retedVoltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定电流：</label>
                <div class="col-sm-8">
                    <input name="ratedCurrent" th:field="*{ratedCurrent}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定功率：</label>
                <div class="col-sm-8">
                    <input name="ratedPower" th:field="*{ratedPower}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">峰值功率：</label>
                <div class="col-sm-8">
                    <input name="peakPower" th:field="*{peakPower}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">有效比功率：</label>
                <div class="col-sm-8">
                    <input name="effectiveSpecific" th:field="*{effectiveSpecific}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">额定功率转速：</label>
                <div class="col-sm-8">
                    <input name="ratedPowerSpeed" th:field="*{ratedPowerSpeed}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机最高转速：</label>
                <div class="col-sm-8">
                    <input name="drivemotorMaximumSpeed" th:field="*{drivemotorMaximumSpeed}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机峰值转矩：</label>
                <div class="col-sm-8">
                    <input name="drivemotorPeakTorque" th:field="*{drivemotorPeakTorque}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">驱动电机最大输出转矩：</label>
                <div class="col-sm-8">
                    <input name="drivemotorMaximumOutputTorque" th:field="*{drivemotorMaximumOutputTorque}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生产厂商名称：</label>
                <div class="col-sm-8">
                    <input name="manufacturerName" th:field="*{manufacturerName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">控制器型号：</label>
                <div class="col-sm-8">
                    <input name="controllerModel" th:field="*{controllerModel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">控制器厂商：</label>
                <div class="col-sm-8">
                    <input name="controllerManufacturer" th:field="*{controllerManufacturer}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "parts/motorModel";
        $("#form-motorModel-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-motorModel-edit').serialize());
            }
        }
    </script>
</body>
</html>
